using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace uk.co.tonyditchfield.utility.logging
{
    public abstract class LoggingLevel
    {
        private static EventLogEntryType logLevel;
        protected static EventLogEntryType LogLevel
        {
            get { return logLevel; }
            set { logLevel = value; }
        }

        protected static void SetLoggingLevel(string level)
        {
            switch (level.ToUpper())
            {
                case "INFO":
                    LogLevel = EventLogEntryType.Information;
                    break;
                case "WARNING":
                    LogLevel = EventLogEntryType.Warning;
                    break;
                case "ERROR":
                    LogLevel = EventLogEntryType.Error;
                    break;
                default:
                    LogLevel = EventLogEntryType.Information;
                    break;
            }
        }
    }
}
